Skip to content

Bulk initiate payout instructions

Request

Initiates payout instructions of the distribution in a single batch and sends the initial email notification to each beneficiary. Only payout instructions in the Ready status are selected, oldest first; the response reports how many were actually accepted. The selection can be scoped with 'uploadBatchId' (only instructions created or updated by that upload batch) and capped with 'count'. Alternatively, pass 'payoutInstructionIds' to initiate an explicit, hand-picked set — mutually exclusive with 'uploadBatchId' and 'count'. That selection is all-or-nothing: every id must belong to this distribution and be Ready, otherwise the request is rejected with 409 listing the unusable ids and nothing is initiated. The upload batch must belong to this distribution and have finished processing: an unknown batch is rejected with 404, a still-processing one with 409 — poll the upload-status endpoint until it reports complete. When 'count' is omitted, all Ready instructions in scope are selected; if more than 25000 are Ready the request is rejected — provide a count, split the work into smaller uploads, or contact Talli support. The whole batch is accepted or rejected atomically: the distribution's bank account must hold enough unallocated funds to cover the batch, and the batch must fit within the organization's daily email send limit (otherwise the request is rejected with the current limit and usage — contact Talli support to send more emails). Accepted emails are queued and sent gradually; the returned batch identifier tags every email produced by the batch. With 'dryRun' set to true, all validations run and the would-be batch summary is returned with status 200, but nothing is initiated.

Security
oauth2(Required scopes: payoutInstructions:initiate)
Path
distributionIdstring, (uuid)required
Bodyapplication/jsonrequired
payoutInstructionIdsArray of strings or null, (uuid)

Optional. When set, exactly these payout instructions are initiated — no more, no fewer. Every id must belong to this distribution and be in the Ready status; if any id is unknown, belongs to another distribution, or is not Ready, the whole request is rejected with 409 and none are initiated. Cannot be combined with uploadBatchId or count.

uploadBatchIdstring or null, (uuid)

Optional. When set, only payout instructions created or updated by this upload batch (the batchId returned by the upload endpoint) are selected. The batch must belong to this distribution and have finished processing: an unknown batch is rejected with 404, a still-processing batch with 409 (poll the upload-status endpoint until complete). When omitted, all Ready payout instructions of the distribution are eligible.

countinteger or null, (int32)

Optional cap on how many payout instructions to initiate, oldest first. When omitted, all Ready payout instructions in scope are selected, up to the batch maximum; if more are Ready than the maximum, the request is rejected. The response reports how many were actually accepted.

dryRunboolean

When true, runs all validations (instruction selection, available funds, email send limit) and returns the would-be batch summary without initiating anything. Rejections are reported exactly as for a real run.

curl -i -X POST \
  'https://docs.talli.ai/_mock/referencev3/swagger/v3/distribution-manager/distributions/{distributionId}/payout-instructions/:initiate' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "payoutInstructionIds": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "uploadBatchId": "56856347-8fa2-4af1-ae13-f6d8038f059c",
    "count": 0,
    "dryRun": true
  }'

Responses

OK

Bodyapplication/json
dryRunbooleanrequired

True when the request was a dry run: all validations were performed and the summary returned, but nothing was initiated.

batchIdstring or null, (uuid)

The identifier of this initiation batch. All emails produced by the batch are tagged with it. Null for dry runs.

acceptedCountinteger, (int32)required

The number of payout instructions accepted for initiation (or that would be accepted, for a dry run).

totalAmountnumber, (double)required

The total monetary amount of the accepted payout instructions.

Response
{ "dryRun": true, "batchId": "5579c111-9c50-47e2-af92-f16d52e63189", "acceptedCount": 0, "totalAmount": 0.1 }